package Generics;


class MArray {
    public Object[] array = new Object[10];
    public void set(int index , Object value) {
        array[index] = value;
    }
    public Object get(int index) {
        return array[index];
    }
}
public class NotGenerics {
    public static void main(String[] args) {
        MArray mArray = new MArray();
        mArray.set(0,12);
        mArray.set(1,"厉害");
        mArray.set(2,3.14);
    }
}
